/**
 * 
 */
package it.fuesi.myseries.api.tasks;

import it.fuesi.myseries.api.AbstractApiTask;
import it.fuesi.myseries.model.MySeriesConstant;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;
import android.telephony.TelephonyManager;

/**
 * @author fuesi
 *
 */
public class PutSerie extends AbstractApiTask {

	

	/* (non-Javadoc)
	 * @see it.fuesi.myseries.api.AbstractApiTask#getApiParams()
	 */
	@Override
	protected Map<String, String> getApiParams() {
		int tvDbId = getCurrentBundle().getInt(MySeriesConstant.ID.toString());
		
		final TelephonyManager tMgr =(TelephonyManager)getCurrentContext().getSystemService(Context.TELEPHONY_SERVICE);
		String userId = tMgr.getLine1Number();
		
		final Map<String,String> queryParams = new HashMap<String,String>();
		queryParams.put("userId", userId);
		queryParams.put("tvDbId", ""+tvDbId);
		
		return queryParams;
	}


}
